#include "thirdparty/gtest/gtest.h"
#include "thirdparty/logging/fixed_buffer.h"
using namespace logging;
TEST(FixedBuffer, append) {
  FixedBuffer<10>buffer;
  EXPECT_EQ(buffer.RemainLen(),10U);
  EXPECT_TRUE(buffer.Append("hello",5));
  EXPECT_EQ(buffer.RemainLen(),5U);
  EXPECT_FALSE(buffer.Append("123456",6));
}
